package com.t.bricks.bussiness.db.entity.freightruledetail.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 运费规则详情'FreightRuleDetail'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 */
@ApiModel("运费规则详情FreightRuleDetail")
@DataInfo(sDbName="BricksMall", sTableName="FreightRuleDetail")
public class FreightRuleDetailBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="uId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="", position=0)
	//[end]
	protected String uId;

	/**
	 * 规则编号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="sRuleId", sComment="规则编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="规则编号", example="", position=1)
	//[end]
	protected String sRuleId;

	/**
	 * 运送地区
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="sArea", sComment="运送地区", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=500, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="运送地区", example="", position=2)
	//[end]
	protected String sArea;

	/**
	 * 首值
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="iSize", sComment="首值", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="首值", example="1", position=3)
	//[end]
	protected Integer iSize;
	
	/**
	 * 首费(元)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="mValue", sComment="首费(元)", isDbField=true, sDbFileType="decimal",
		sDefaultData="1.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="首费(元)", example="1.00", position=4)
	//[end]
	protected BigDecimal mValue;

	/**
	 * 续值
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="iSizeFollow", sComment="续值", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="续值", example="1", position=5)
	//[end]
	protected Integer iSizeFollow;
	
	/**
	 * 续费(元)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="mValueFollow", sComment="续费(元)", isDbField=true, sDbFileType="decimal",
		sDefaultData="1.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="续费(元)", example="1.00", position=6)
	//[end]
	protected BigDecimal mValueFollow;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="备注", example="", position=7)
	//[end]
	protected String sMemo;

	/**
	 * 创建人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="sCreator", sComment="创建人", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="创建人", example="00000000", position=8)
	//[end]
	protected String sCreator;

	/**
	 * 创建日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="dCreateDate", sComment="创建日期", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=9 )
	@ApiModelProperty(value="创建日期", example="", position=9)
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=10 )
	@ApiModelProperty(value="修改人", example="00000000", position=10)
	//[end]
	protected String sModifieder;

	/**
	 * 修改日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="dModifiedDate", sComment="修改日期", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=11 )
	@ApiModelProperty(value="修改日期", example="", position=11)
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态(枚举,1:启用;2:关闭)
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="iState", sComment="状态(枚举,1:启用;2:关闭)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=12 )
	@ApiModelProperty(value="状态(枚举,1:启用;2:关闭)", example="1", position=12)
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=13 )
	@ApiModelProperty(value="序号", example="1", position=13)
	//[end]
	protected Integer iIndex;

	/**
	 * 版本
	 */
	//[start]
	@DataInfo( sDbName="BricksMall", sTableName="FreightRuleDetail",
		sName="iVersion", sComment="版本", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=14 )
	@ApiModelProperty(value="版本", example="1", position=14)
	//[end]
	protected Integer iVersion;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getuId() {
		return uId;
	}

	/**
	 * 设置记录编号
	 * @param uId
	 */
	public void setuId(String uId) {
		this.uId = uId;
	}

	/**
	 * 取 规则编号
	 * @return String
	 */
	public String getsRuleId() {
		return sRuleId;
	}

	/**
	 * 设置规则编号
	 * @param sRuleId
	 */
	public void setsRuleId(String sRuleId) {
		this.sRuleId = sRuleId;
	}

	/**
	 * 取 运送地区
	 * @return String
	 */
	public String getsArea() {
		return sArea;
	}

	/**
	 * 设置运送地区
	 * @param sArea
	 */
	public void setsArea(String sArea) {
		this.sArea = sArea;
	}

	/**
	 * 取 首值
	 * @return Integer
	 */
	public Integer getiSize() {
		return iSize;
	}

	/**
	 * 设置首值
	 * @param iSize
	 */
	public void setiSize(Integer iSize) {
		this.iSize = iSize;
	}

	/**
	 * 取 首费(元)
	 * @return Long
	 */
	public BigDecimal getmValue() {
		return mValue;
	}

	/**
	 * 设置 首费(元)
	 * @param mValue
	 */
	public void setmValue(BigDecimal mValue) {
		this.mValue = mValue;
	}

	/**
	 * 取 续值
	 * @return Integer
	 */
	public Integer getiSizeFollow() {
		return iSizeFollow;
	}

	/**
	 * 设置续值
	 * @param iSizeFollow
	 */
	public void setiSizeFollow(Integer iSizeFollow) {
		this.iSizeFollow = iSizeFollow;
	}

	/**
	 * 取 续费(元)
	 * @return Long
	 */
	public BigDecimal getmValueFollow() {
		return mValueFollow;
	}

	/**
	 * 设置 续费(元)
	 * @param mValueFollow
	 */
	public void setmValueFollow(BigDecimal mValueFollow) {
		this.mValueFollow = mValueFollow;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建人
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建人
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建日期
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建日期
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改日期
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改日期
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态(枚举,1:启用;2:关闭)
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态(枚举,1:启用;2:关闭)
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return FreightRuleDetailBase
	 */
	public static FreightRuleDetailBase copy(FreightRuleDetailBase source) {
		if (null == source) {
			return null;
		}
		
		FreightRuleDetailBase target = new FreightRuleDetailBase();
		target.setuId(source.getuId());
		target.setsRuleId(source.getsRuleId());
		target.setsArea(source.getsArea());
		target.setiSize(source.getiSize());
		target.setmValue(source.getmValue());
		target.setiSizeFollow(source.getiSizeFollow());
		target.setmValueFollow(source.getmValueFollow());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return FreightRuleDetailBase
	 */
	public FreightRuleDetailBase clone() {
		return copy(this);
	}
	
}
